<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/laydate.php';
		?>
    <title>督导听课评价表</title>
</head>

<style>
      body{
        background: #fff;
        width: 96%;
        margin-left: 2%;
    }
    *{
    margin: 0;padding: 0;
}
.top{
    /* margin-top: 5%; */
    width: 100%;
    text-align: center;
}
.top p {
        width: 30%;
        margin-left: 70%;
    }
.topsp{
    margin-left: 3%;
    font-size: 25px;
    font-weight: bold;
}
.topsp1{
    font-size: 13px;
    font-weight: bold;
}
.bottom{
    width: 100%;
    margin-top: 1%;
    margin-bottom: 5%;
}
.bottom form{
    margin: 0 auto;
}
.trs{
    border-bottom: 1px solid #000;
    height: 50px;
}
.course{
width: 10%;
height: 45px;
font-size: 15px;
font-weight: bold;
text-align: center;

}
.course1{
    border-left: 1px solid #000;
    padding-left: 0.5%;
    vertical-align:middle;
    font-size: 14px;
    font-family: 'SimSun';
    width:30%;
}
.course2{
    border-left: 1px solid #000;border-right: 1px solid #000;
    text-align: center;
    vertical-align:middle;
    font-size: 14px;
    font-family: 'SimSun';
}
.ckbox{
    vertical-align:middle;
    margin-bottom: 3px;
}
.Teacher{
    
    width:10%;
    height: 45px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}
.Teacher1{
    border-left: 1px solid #000;
    padding-left: 0.5%;
    vertical-align:middle;
    font-size: 14px;
    font-family: 'SimSun';
    width:30%;
}
.ther{
    border-bottom: 1px solid #000;
    height: 28px;
}
.bor{
    border: 0;
    height: 20px;
}
.wid{
    width: 120px;
    height: 20px;
}
.borl{
    border-left: 1px solid #000;
}
.borb{
    border-bottom: 1px solid #000;
}
td{
    /* width: 10px; */
    height:15px;/*这里需要自己调整，根据自己的需求调整高度*/
    position: relative;
    }
/* td[class=trtd]:before{
    content: '';
    position: absolute;
    width: 1px;
    height: 54px;
    top: 0px;
    left: 38px;
    background-color: black;
    display: block;
    transform: rotate(45.9deg);
    transform-origin: top;
} */
/* .xx{
    content: '';
    position: absolute;
    width: 1px;
    height: 54px;
    top: 0px;
    left: 38px;
    background-color: black;
    display: block;
    transform: rotate(45.9deg);
    transform-origin: top;
} */

.thaty{
    text-align: center;
    border: 1px solid #000;
    width: 50px;
    height: 20px;
}
.standard{
    height: 80px;
    border: 1px solid #000;
    text-align: center;
    width:44px;
}
.ability{
    width: 44px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    padding: 1.5%;
}
.tsstus{
    width: 44px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    padding: 3.5%;
}
.score{
    height: 22px;
    width: 29px;
    border: 0;
    text-align: center;
}
.score1{
    width: 75px;
    height: 22px;
    border: 0;
    text-align: center;
}
.cascore{
    height: 22px;
    width: 55px;
    border: 0;
    text-align: center;
}
#print{
        position: absolute;
        top:10px;
        right:2%;
      }
   .table1{
     border: 1px solid #000;width: 250mm; margin: 0 auto;border-collapse: collapse;
   } 
   
   .table2{
         border-left: 1px solid #000;border-right: 1px solid #000;width: 250mm;height: 826px; margin: 0 auto;border-collapse: collapse;
         page-break-after:always;
   } 



   .table3{
    /* border-left: 1px solid #000;border-right: 1px solid #000;border-bottom: 1px solid #000; */
    /* border: 1px solid #000; */
    width:250mm;height:500px; margin: 0 auto;border-collapse: collapse;
   } 
</style>

<!-- 打印时隐藏按钮 -->
<style media="print">
  #print {
  display: none;
  }
  .table3{
    border: 1px solid #000; 
  }
</style>
<style media="screen">
   #print {
  display: block;
  }
  .table3{
    border-left: 1px solid #000;border-right: 1px solid #000;border-bottom: 1px solid #000;
   } 
</style>
<body>
    
        <div id="print"></div>
    <div class="top">
     <span class="topsp">浙江工业职业技术学院课堂教学评价表（<?=$detail['attend']['class_type']?>）</span>
       <p> <span class="topsp1"><?=$detail['attend']['academic_year'].'学年'.$detail['attend']['semester']?></span></p>
    </div>
    <div class="bottom">
        <form>
            <table class="table1" >
                <!-- <thead> -->
                    <!-- 课程信息 -->
                    <tr class="trs">
                        <td class="course"><span>课程信息</span></td>
                        <td class="course1"colspan="2" >课程名称：<?=$detail['attend']['class_name']?> </td>
                        <td class="course1">开课单位：<?=$detail['attend']['course_units']?></td>
                    </tr>

                    <!-- 教师信息 -->
                    <tr class="ther">
                        <td class="Teacher" rowspan="2">教师信息</td>
                        <td class="Teacher1"  >教师姓名：<?=$detail['attend']['teacher_name']?></td>
                        <td class="Teacher1" >教师职称：<?=$detail['attend']['title']?></td>
                        <td class="Teacher1" >所属单位和专业：<?=$detail['attend']['dept_name']?></td>
                    </tr>
                    <tr class="ther">
                        <td class="Teacher1" >年龄：<?=$detail['attend']['age_groups']?></td>
                        <td class="Teacher1" colspan="2" >教师属性：<?=$detail['attend']['teachers_attribute']?></td>
                    </tr>

                    <!-- 听课信息 -->
                    <tr class="ther">
                        <td class="Teacher" rowspan="2">听课信息</td>
                        <td class="Teacher1" >听课人姓名：<?=$detail['attend']['listen_name']?></td>
                        <td class="Teacher1" >听课地点：<?=$detail['attend']['listen_address']?></td>
                        <td class="Teacher1" >听课时间：<?php echo $detail['attend']['listen_time'] ?date('Y-m-d',$detail['attend']['listen_time']) :'';?>
                        </td>
                    </tr>
                    <tr class="ther">
                        <td class="Teacher1" colspan="3">听课班级：<?=$detail['attend']['listen_class']?></td>
                    </tr>
              </table>
              <table  class="table2" >
                    <!-- 评价项目 -->
                    <tr>
                        <td class="course" style="border-bottom: 1px solid #000;"  rowspan="2">评价项目</td>
                        <td class="course borl borb"  rowspan="2"> 评价指标</td>
                        <td class="course2 borb" style="text-align: center;"  rowspan="2"> </td>
                        <td class="course2 borb" colspan="3" style="width: 71%;">等级</td>
                    </tr>
                    <tr>
                        <td class="course2 borb" >好</td>
                        <td class="course2 borb">中</td>
                        <td class="course2 borb" >差</td>
                    </tr>


                    <!-- 教学能力 -->
                    <tr>
                        <td class="ability borb" rowspan="12">教　学　能　力　（100）</td>
                        <!-- 教学准备 -->
                        <td class="ability borl borb" id="Teaching_ability" rowspan="3"><?= Attend3TeachingContent::First[XPHEnum::Caption] ?>（20）</td>
                        <td class="borl borb standard">标准</td>
                        <td  class="standard"><?= Attend3TeachingContent::First[XPHEnum::Detail][2][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::First[XPHEnum::Detail][1][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::First[XPHEnum::Detail][0][2] ?></td>
                    </tr>

                    <tr>
                        <td class="thaty">配分</td>
                        <td class="thaty" ><?= Attend3TeachingContent::First[XPHEnum::Detail][2][0] ?>-<?= Attend3TeachingContent::First[XPHEnum::Detail][2][1] ?></td>
                        <td class="thaty"><?= Attend3TeachingContent::First[XPHEnum::Detail][1][0] ?>-<?= Attend3TeachingContent::First[XPHEnum::Detail][1][1] ?></td>
                        <td class="thaty" ><?= Attend3TeachingContent::First[XPHEnum::Detail][0][0] ?>-<?= Attend3TeachingContent::First[XPHEnum::Detail][0][1] ?></td>
                    </tr>
                   
                    <tr>
                        <td class="thaty">评分</td>
                        <td class="thaty" colspan="3" style="text-align: left;">&nbsp;&nbsp;
                        <?=$detail['attend3_teaching_content'][0]['get_score']>=Attend3TeachingContent::First[XPHEnum::Detail][2][0] && $detail['attend3_teaching_content'][0]['get_score']<=Attend3TeachingContent::First[XPHEnum::Detail][2][1] ? $detail['attend3_teaching_content'][0]['get_score'] : ''?><?=$detail['attend3_teaching_content'][0]['get_score']>=Attend3TeachingContent::First[XPHEnum::Detail][1][0] && $detail['attend3_teaching_content'][0]['get_score']<=Attend3TeachingContent::First[XPHEnum::Detail][1][1] ? $detail['attend3_teaching_content'][0]['get_score'] : ''?><?=$detail['attend3_teaching_content'][0]['get_score']>=Attend3TeachingContent::First[XPHEnum::Detail][0][0] && $detail['attend3_teaching_content'][0]['get_score']<=Attend3TeachingContent::First[XPHEnum::Detail][0][1] ? $detail['attend3_teaching_content'][0]['get_score'] : ''?>
                        </td>
                    </tr>
                   

                    <!-- 教学内容 -->
                    
                    <tr>
                        <td class="ability borl borb" rowspan="3"><?= Attend3TeachingContent::Second[XPHEnum::Caption] ?>（20）</td>
                        <td class="borl borb standard">标准</td>
                        <td  class="standard"><?= Attend3TeachingContent::Second[XPHEnum::Detail][2][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::Second[XPHEnum::Detail][1][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::Second[XPHEnum::Detail][0][2] ?></td>
                    </tr>
                    <tr>
                        <td class="thaty">配分</td>
                        <td class="thaty" ><?= Attend3TeachingContent::Second[XPHEnum::Detail][2][0] ?>-<?= Attend3TeachingContent::Second[XPHEnum::Detail][2][1] ?></td>
                        <td class="thaty"><?= Attend3TeachingContent::Second[XPHEnum::Detail][1][0] ?>-<?= Attend3TeachingContent::Second[XPHEnum::Detail][1][1] ?></td>
                        <td class="thaty" ><?= Attend3TeachingContent::Second[XPHEnum::Detail][0][0] ?>-<?= Attend3TeachingContent::Second[XPHEnum::Detail][0][1] ?></td>
                    </tr>
                
                    <tr>
                        <td class="thaty">评分</td>
                        <td class="thaty" colspan="3" style="text-align: left;">&nbsp;&nbsp;
                        <?=$detail['attend3_teaching_content'][1]['get_score']>=Attend3TeachingContent::Second[XPHEnum::Detail][2][0] && $detail['attend3_teaching_content'][1]['get_score']<=Attend3TeachingContent::Second[XPHEnum::Detail][2][1] ? $detail['attend3_teaching_content'][1]['get_score'] : ''?> <?=$detail['attend3_teaching_content'][1]['get_score']>=Attend3TeachingContent::Second[XPHEnum::Detail][1][0] && $detail['attend3_teaching_content'][1]['get_score']<=Attend3TeachingContent::Second[XPHEnum::Detail][1][1] ? $detail['attend3_teaching_content'][1]['get_score'] : ''?> <?=$detail['attend3_teaching_content'][1]['get_score']>=Attend3TeachingContent::Second[XPHEnum::Detail][0][0] && $detail['attend3_teaching_content'][1]['get_score']<=Attend3TeachingContent::Second[XPHEnum::Detail][0][1] ? $detail['attend3_teaching_content'][1]['get_score'] : ''?>
                    </td>
                    </tr>
                   
                    <!-- 教学实施 -->
                    <tr>
                      <td class="ability borl borb" rowspan="3"><?= Attend3TeachingContent::Third[XPHEnum::Caption] ?>（35）</td>
                        <td class="borl borb standard">标准</td>
                        <td  class="standard"><?= Attend3TeachingContent::Third[XPHEnum::Detail][2][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::Third[XPHEnum::Detail][1][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::Third[XPHEnum::Detail][0][2] ?></td>
                    </tr>
                    <tr>
                        <td class="thaty">配分</td>
                        <td class="thaty" ><?= Attend3TeachingContent::Third[XPHEnum::Detail][2][0] ?>-<?= Attend3TeachingContent::Third[XPHEnum::Detail][2][1] ?></td>
                        <td class="thaty"><?= Attend3TeachingContent::Third[XPHEnum::Detail][1][0] ?>-<?= Attend3TeachingContent::Third[XPHEnum::Detail][1][1] ?></td>
                        <td class="thaty" ><?= Attend3TeachingContent::Third[XPHEnum::Detail][0][0] ?>-<?= Attend3TeachingContent::Third[XPHEnum::Detail][0][1] ?></td>
                    </tr>
                   
                    <tr>
                        <td class="thaty">评分</td>
                        <td class="thaty" colspan="3" style="text-align: left;">&nbsp;&nbsp;
                        <?=$detail['attend3_teaching_content'][2]['get_score']>=Attend3TeachingContent::Third[XPHEnum::Detail][2][0] && $detail['attend3_teaching_content'][2]['get_score']<=Attend3TeachingContent::Third[XPHEnum::Detail][2][1] ? $detail['attend3_teaching_content'][2]['get_score'] : ''?><?=$detail['attend3_teaching_content'][2]['get_score']>=Attend3TeachingContent::Third[XPHEnum::Detail][1][0] && $detail['attend3_teaching_content'][2]['get_score']<=Attend3TeachingContent::Third[XPHEnum::Detail][1][1] ? $detail['attend3_teaching_content'][2]['get_score'] : ''?><?=$detail['attend3_teaching_content'][2]['get_score']>=Attend3TeachingContent::Third[XPHEnum::Detail][0][0] && $detail['attend3_teaching_content'][2]['get_score']<=Attend3TeachingContent::Third[XPHEnum::Detail][0][1] ? $detail['attend3_teaching_content'][2]['get_score'] : ''?>
                        </td>
                    </tr>
                  
                    <!-- 教学效果 -->
                    <tr>
                      <td class="ability borl borb" rowspan="3"><?= Attend3TeachingContent::Fourth[XPHEnum::Caption] ?>（25）</td>
                        <td class="borl borb standard">标准</td>
                        <td  class="standard"><?= Attend3TeachingContent::Fourth[XPHEnum::Detail][2][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::Fourth[XPHEnum::Detail][1][2] ?></td>
                        <td  class="standard"><?= Attend3TeachingContent::Fourth[XPHEnum::Detail][0][2] ?></td>
                    </tr>
                    <tr>
                        <td class="thaty">配分</td>
                        <td class="thaty" ><?= Attend3TeachingContent::Fourth[XPHEnum::Detail][2][0] ?>-<?= Attend3TeachingContent::Fourth[XPHEnum::Detail][2][1] ?></td>
                        <td class="thaty"><?= Attend3TeachingContent::Fourth[XPHEnum::Detail][1][0] ?>-<?= Attend3TeachingContent::Fourth[XPHEnum::Detail][1][1] ?></td>
                        <td class="thaty" ><?= Attend3TeachingContent::Fourth[XPHEnum::Detail][0][0] ?>-<?= Attend3TeachingContent::Fourth[XPHEnum::Detail][0][1] ?></td>
                    </tr>
                 
                    <tr>
                        <td class="thaty">评分</td>
                        <td class="thaty" colspan="3" style="text-align: left;">&nbsp;&nbsp;
                        <?=$detail['attend3_teaching_content'][3]['get_score']>=Attend3TeachingContent::Fourth[XPHEnum::Detail][2][0] && $detail['attend3_teaching_content'][3]['get_score']<=Attend3TeachingContent::Fourth[XPHEnum::Detail][2][1] ? $detail['attend3_teaching_content'][3]['get_score'] : ''?><?=$detail['attend3_teaching_content'][3]['get_score']>=Attend3TeachingContent::Fourth[XPHEnum::Detail][1][0] && $detail['attend3_teaching_content'][3]['get_score']<=Attend3TeachingContent::Fourth[XPHEnum::Detail][1][1] ? $detail['attend3_teaching_content'][3]['get_score'] : ''?><?=$detail['attend3_teaching_content'][3]['get_score']>=Attend3TeachingContent::Fourth[XPHEnum::Detail][0][0] && $detail['attend3_teaching_content'][3]['get_score']<=Attend3TeachingContent::Fourth[XPHEnum::Detail][0][1] ? $detail['attend3_teaching_content'][3]['get_score'] : ''?>
                        </td>
                    </tr>

                   
                    <!-- 学生状况 -->
                    <tr>
                       <td class="tsstus borl borb" rowspan="3" colspan="2"><?= StudentStatus::Third[XPHEnum::Caption] ?>（100）</td>
                        <td class="borl borb standard">标准</td>
                        <td  class="standard"><?= StudentStatus::Third[XPHEnum::Detail][2][2] ?></td>
                        <td  class="standard"><?= StudentStatus::Third[XPHEnum::Detail][1][2] ?></td>
                        <td  class="standard"><?= StudentStatus::Third[XPHEnum::Detail][0][2] ?></td>
                    </tr>
                    <tr>
                        <td class="thaty">配分</td>
                        <td class="thaty" ><?= StudentStatus::Third[XPHEnum::Detail][2][0] ?>-<?= StudentStatus::Third[XPHEnum::Detail][2][1] ?></td>
                        <td class="thaty"><?= StudentStatus::Third[XPHEnum::Detail][1][0] ?>-<?= StudentStatus::Third[XPHEnum::Detail][1][1] ?></td>
                        <td class="thaty" ><?= StudentStatus::Third[XPHEnum::Detail][0][0] ?>-<?= StudentStatus::Third[XPHEnum::Detail][0][1] ?></td>      
                    </tr>   
                   
                    <tr>
                        <td class="thaty">评分</td>
                        <td class="thaty" colspan="3" style="text-align: left;">&nbsp;&nbsp;
                        <?=$detail['attend_student_status'][0]['get_score']>=StudentStatus::Third[XPHEnum::Detail][2][0] && $detail['attend_student_status'][0]['get_score']<=StudentStatus::Third[XPHEnum::Detail][2][1] ? $detail['attend_student_status'][0]['get_score'] : ''?><?=$detail['attend_student_status'][0]['get_score']>=StudentStatus::Third[XPHEnum::Detail][1][0] && $detail['attend_student_status'][0]['get_score']<=StudentStatus::Third[XPHEnum::Detail][1][1] ? $detail['attend_student_status'][0]['get_score'] : ''?><?=$detail['attend_student_status'][0]['get_score']>=StudentStatus::Third[XPHEnum::Detail][0][0] && $detail['attend_student_status'][0]['get_score']<=StudentStatus::Third[XPHEnum::Detail][0][1] ? $detail['attend_student_status'][0]['get_score'] : ''?>
                    </td>
                    </tr>

                    <tr style="height: 20px;">
                        <td class="borl borb" style="font-size: 15px; font-weight: bold;padding-left: 1%;padding-top: 0.5%;padding-bottom: 0.5%;">总计</td>
                        <td class="borb" colspan="6" style="font-size: 15px;">(教学能力*70%+学生状态*30%):<?=$detail['attend']['score']?></td>
                    </tr>   
            </table>
            <table class="table3">
                <?php if($detail['attend_img3']):?>
                <tr>
                            <td class="borb" colspan="20" style="height: auto;"><div
                                    style="height: 98%;border: 0;padding-top: 0.1%;font-size: 15px;">
                                    <div style="font-weight: bold;">学生状况附件</div><br>
                                    <div style="margin-left:10px;padding-bottom: 30px ;">
                                    <div>
                                        <?php foreach ($detail['attend_img3'] as $k => $v) :?>
                                            <img src="<?=$v['img']?>" alt="" style="width:200px;padding: 5px ;">
                                        <?php endforeach?>
                                    </div>
                                    </div>
                                    <!-- <div style="margin-left:10px"><?php pri($detail);?></div> -->
                                </div>
                            </td>
                        </tr>
                <tr>
                <?php endif;?>
                        <td class="borb" colspan="20" style="height: auto;"><div
                                style="height: 98%;border: 0;padding-top: 0.1%;font-size: 15px;">
                                <div style="font-weight: bold;">听课意见及建议:</div><br><div style="margin-left:10px;padding-bottom: 30px ;">
                                <?=$detail['attend']['advice']?>
                                <div>
                                    <?php foreach ($detail['attend_img2'] as $k => $v) :?>
                                        <img src="<?=$v['img']?>" alt="" style="width:200px;padding: 5px ;">
                                    <?php endforeach?>
                                </div>
                            </div></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="borb" colspan="20" style="height: auto;"><div
                                style="height: 98%;border: 0;padding-top: 0.1%;font-size: 15px;">
                                <div style="font-weight: bold;"> 听课内容记录: （包括教学内容、教学过程、教学组织、各环节时间点、学生反映情况等）</div><br>
                                <div style="margin-left:10px;padding-bottom: 30px ;">
                                <?=$detail['attend_record'][0]['commentary']?>
                                <div>
                                    <?php foreach ($detail['attend_img1'] as $k => $v) :?>
                                        <img src="<?=$v['img']?>" alt="" style="width:200px;padding: 5px ;">
                                    <?php endforeach?>
                                </div>
                                </div>
                                <!-- <div style="margin-left:10px"><?php pri($detail);?></div> -->
                            </div>
                        </td>
                    </tr>
            </table>
        </form>
    </div>

</body>
<script>
  $(function(){

    var str = window.location.href;
    var index = str.substr(str.length-1,1);
    if(index == "?"){
        $("body").css("padding-left","0%");          
    }else{
        $("#print").html("<button class='btn btn-success' onclick='window.print();'>打印</button>");
    }
})
</script>

</html>